package cc.rssoft.qqd.sdk;

import java.util.Date;

import cc.rssoft.qqd.sdk.command.response.GetCustomerContactHistoryResponse;

/**
 * @version 2.0
 */
public class SampleCode {

	
	/**
	 * 
	 */
	private static String rsmwUrl = "http://192.168.8.231:18080/qqd/api/2.0/";
	
	/**
	 * 注意！！！！！！！！
	 * 
	 * apiSecret在qqd系统界面中配置。
	 * 即：启用apiSecret后的apiSecret
	 */
	private static String apiSecret = "pA55w0rd";
	
	private static int connectTimeout = 2000;
	private static int readTimeout = 2000;
	
	private static QqdServer qqdServer = new QqdServer(rsmwUrl,apiSecret,connectTimeout,readTimeout);
	
	public static void main(String[] args) {
		GetCustomerContactHistoryResponse r = qqdServer.getCustomerContactHistory("13391026171", new Date(), 2);
		System.out.println(r.toJsonString());
	}
}
